﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Pattern.Model;

namespace Pattern.Common
{

    public static class Norms
    {
        public static double EuclidianNorm(this Sample sample)
        {
            return Math.Sqrt(sample.Features.Sum(d => Math.Pow(d, 2)));
        }
    }
}
